
#define	PROMPT		"> "

#define	MAXLINE		511
#define	MAXARGS		15

#define forever while(1)

#define	STRLOGIN	"login"
#define STRDOWNL	"download"
#define	STRUPLAD	"upload"
#define STRLISTC	"listCategories"
#define	STRLISTU	"listUsers"
#define	STRLISTF	"listFiles"
//#define STRCAT	"categories"
//#define STRUSERS	"users"
//#define STRFILES	"files"
#define	STRLEAVE	"quit"
#define STRGTICK	"getTicket"
#define STRUTICK	"useTicket"
#define	STRPASSWD	"passwd"

enum{ELOGIN = 1, EDOWNL, EUPLAD, ELIST, ECAT, EUSERS, EFILES, ELEAVE, EGTICK, 
		EUTICK, EPASSWD};

int input(char * prompt, char * inpbuf);
int process_line(char * line);
void gettoken(char * line, char * delim, char ** arg, int narg);
int process_command(int argc, char * argv[]);
void run_command(int command, char * argv[]);
void freeArg(char ** arg, int narg);
int checkLine(char * line);
